package com.yuanchu.goods.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuanchu.common.utils.PageUtils;
import com.yuanchu.common.utils.Query;

import com.yuanchu.goods.dao.YoshopGoodsImageDao;
import com.yuanchu.goods.entity.YoshopGoodsImageEntity;
import com.yuanchu.goods.service.YoshopGoodsImageService;


@Service("yoshopGoodsImageService")
public class YoshopGoodsImageServiceImpl extends ServiceImpl<YoshopGoodsImageDao, YoshopGoodsImageEntity> implements YoshopGoodsImageService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<YoshopGoodsImageEntity> page = this.page(
                new Query<YoshopGoodsImageEntity>().getPage(params),
                new QueryWrapper<YoshopGoodsImageEntity>()
        );

        return new PageUtils(page);
    }

}